The Dreamweaver JavaScript API > Behavior functions > dreamweaver.behaviorInspector.moveBehaviorDown()

 

dreamweaver.behaviorInspector.moveBehaviorDown()

Availability

Dreamweaver 3.0

Description

Moves a behavior action lower in sequence by changing its execution order within the scope of an event.

Arguments

positionIndex

positionIndex is the position of the action in the Behaviors panel. The first action in the list is at position 0.

Returns

Nothing.

Enabler

None.

Example

Assuming the Behaviors panel setup shown in this example, calling dw.behaviorInspector.moveBehaviorDown(2) would swap the positions of the Custom Script and the Change Property actions on the onMouseOver event. Calling dw.behaviorInspector.moveBehaviorDown() for any other position would have no effect because the onClick and onMouseOut events each have only one behavior associated with them, and the behavior at position 3 is already at the bottom of the onMouseOver group.